package client

import (
	"fmt"
	"github.com/mercadolibre/golang-restclient/rest"
)

func NewRestClient() {

	type User struct {
		Id   int    `json:"id"`
		Name string `json:"name"`
	}

	body := new(User)
	body.Id = 1
	body.Name = "Hernan"

	// body will be marshall as JSON
	resp := rest.Post("https://api.restfulsite.com/resource/1", body)
	fmt.Println(resp)
}
